//
//  DGGUIKitPrefixHeader.h
//  DGGUIKit
//
//  Created by dgg_hzk on 2019/11/21.
//

#ifndef DGGUIKitPrefixHeader_h
#define DGGUIKitPrefixHeader_h

#import <DGGCommonSDK/DGGCommonSDK.h>

//#import <Masonry/Masonry.h>
//#import <MJExtension/MJExtension.h>
//#import <JLRoutes/JLRoutes.h>
//#import <MJRefresh/MJRefresh.h>
#import <ReactiveObjC/ReactiveObjC.h>
//#import <HBDNavigationBar/HBDNavigationBar.h>
//#import <HBDNavigationBar/UIViewController+HBD.h>
//#import <HBDNavigationBar/HBDNavigationController.h>
//#import <MBProgressHUD/MBProgressHUD.h>

static NSString * const kDLBundleName = @"DGGUIKit.bundle";//资源包名称

#define kDLUIKitXIBName(_name_) [NSString stringWithFormat:@"%@/%@",kDLBundleName,_name_]
#define kDLUIKitImageName(_name_) [NSString stringWithFormat:@"%@/%@.png",kDLBundleName,_name_]
#define kDLUIKitResources(_name_) [NSString stringWithFormat:@"%@/%@",kDLBundleName,_name_]

//屏幕的尺寸
#define kDevice_Is_iPhoneX  ([[UIApplication sharedApplication] statusBarFrame].size.height > 20.0)
#define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
#define kNavHeight  (kDevice_Is_iPhoneX?88:64)
#define kBarHeight 44
#define kApplicationWindow [UIApplication sharedApplication].delegate.window
#define kWindow UIWindow *window = kApplicationWindow;

//StoryBoard相关
#define kStoryBoard(_name_)  [UIStoryboard storyboardWithName:_name_ bundle:nil]
#define kStoryBoardBundle(_name_,_bundleName_)  [UIStoryboard storyboardWithName:[NSString stringWithFormat:@"%@Bundle.bundle/%@",_bundleName_,_name_] bundle:nil]

//颜色相关
#define CREATCOLOR(_R_,_G_,_B_,_A_) [UIColor colorWithRGBA:_R_ g:_G_ b:_B_ a:_A_]
#define CREATCOLORHex(_int_) [UIColor colorWithHex:_int_]
#define CREATCOLORWITHSTRING(_str_) [UIColor colorWithHexString:_str_]
#define PlaceholderColor CREATCOLOR(184, 184, 184, 0.7)
#define kNavColor CREATCOLORWITHSTRING(@"#1D90F5")

//读取图片相关
#define IMAGE_NAME(_NAME_) [UIImage imageNamed:_NAME_]

//
#define kself __weak typeof (self) weakSelf = self;

static NSInteger const kStartIndex = 1;
static NSInteger const kCount = 10;

static NSString * const kDLTabStatus_contentKey = @"kDLTabStatus_contentKey";
static NSString * const kDLTabStatus_imageKey = @"kDLTabStatus_imageKey";
static NSString * const kDLTabStatus_isShowBtnKey = @"kDLTabStatus_isShowBtnKey";
static NSString * const kDLTabStatus_btnTitleKey = @"kDLTabStatus_btnTitleKey";
static NSString * const kDLTabStatus_titleKey = @"kDLTabStatus_titleKey";

/**
 错误模式
 */
static NSString * const kDLTabStatus_Error_content = @"无网络连接，请检查网络环境";
static NSString * const kDLTabStatus_Error_image = @"DL_PAGE_ERROR";
static BOOL const kDLTabStatus_Error_isShowBtn = YES;
static NSString * const kDLTabStatus_Error_btnTitle = @"重新加载";
static NSString * const kDLTabStatus_Error_title = @"";

/**
 无数据模式
 */
#define kDLTabStatus_None_content [NSString stringWithFormat:@"暂无%@", [NSString isEmpty:self.title]?@"数据":self.title]
static NSString * const kDLTabStatus_None_image = @"DL_PAGE_NODATA";
static BOOL const kDLTabStatus_None_isShowBtn = NO;
static NSString * const kDLTabStatus_None_btnTitle = @"";
static NSString * const kDLTabStatus_None_title = @"";

/**
 自定义模式
 */
static NSString * const kDLTabStatus_Custom_content = @"";
static NSString * const kDLTabStatus_Custom_image = @"DL_PAGE_NODATA";
static BOOL const kDLTabStatus_Custom_isShowBtn = NO;
static NSString * const kDLTabStatus_Custom_btnTitle = @"";
static NSString * const kDLTabStatus_Custom_title = @"";

#endif /* DGGUIKitPrefixHeader_h */
